/**
 * Created by cy on 2017/10/23
 *
 * Description:
 * 首页+动画
 */

.index_bg-top{
    position: absolute;
    top:0;
    left:0;
    right:0;
    width:100%;
    height: 410px;
    background-size: 100% auto;
    z-index: 1;
}
.index_bg-top.in{
    -webkit-animation:fadeInDownBig 1s .2s ease both;
    animation:fadeInDownBig 1s .2s ease both;
}
.index_bg-top.out{
    -webkit-animation:fadeOutUpBig 1s .2s ease both;
    animation:fadeOutUpBig 1s .2s ease both;
    animation-delay: 0.8s;
    -webkit-animation-delay: 0.8s;
}

.index_bg-bottom{
    position: fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background: url("../img/bg.jpg") 0 bottom no-repeat;
    background-size: 100% 100%;
    -webkit-animation:fadeInUpBig 1s .2s ease both;
    animation:fadeInUpBig 1s .2s ease both;
    z-index: 0;
}

/*中间*/
.index_main{
    margin: 154px auto 0 auto;
    padding-top:131px;
    position: relative;
    z-index: 2;
}
 .index_title{
    position:absolute;
    top:0;
    width:100%;
    height:32px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
}
.index_title.in{
    -webkit-animation:fadeIn 1s .2s ease both;
    animation:fadeIn 1s .2s ease both;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}
.index_title.out{
    -webkit-animation:fadeOut 1s .2s ease both;
    animation:fadeOut 1s .2s ease both;
}

.index_start{
    position:absolute;
    top:59px;
    width:100%;
    height:49px;
    line-height: 49px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}
.index_start.in{
    -webkit-animation:bounceIn 1s .2s ease both;
    animation:bounceIn 1s .2s ease both;
    animation-delay: 1.2s;
    -webkit-animation-delay: 1.2s;
}
.index_start.out{
    -webkit-animation:fadeOut 1s .2s ease both;
    animation:fadeOut 1s .2s ease both;
}

/*.index_num{*/
    /*text-align: center;*/
    /*color:#fdd620;*/
    /*font-size:16px;*/
/*}*/
.index_num.in{
    -webkit-animation:fadeIn 1s .2s ease both;
    animation:fadeIn 1s .2s ease both;
    animation-delay: 1.3s;
    -webkit-animation-delay: 1.3s;
}
.index_num.out{
    -webkit-animation:fadeOut 1s .2s ease both;
    animation:fadeOut 1s .2s ease both;
}

/*书*/
.index_book{
    position:absolute;
    bottom:0px;
    width:100%;
    background-size: contain;
    z-index: 2;
}
.index_book img{
    width: 100%;
}
.index_book.in{
    -webkit-animation:fadeInUpBig 1s .2s ease both;
    animation:fadeInUpBig 1s .2s ease both;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}
.index_book.out{
    -webkit-animation:fadeOutDownBig 1s .2s ease both;
    animation:fadeOutDownBig 1s .2s ease both;
}
/*支持*/
.index_support{
    position:absolute;
    width:100%;
    height:83px;
    bottom:160px;
    text-align: center;
    color:#785a32;
    font-size:16px;
    line-height: 1.5;
}
.index_support-inner{
    text-align: left;
    display: inline-block;
    margin:0 auto;
}
.index_support p:last-child{
    padding-top:20px;font-size: 13px;
}
.index_support.in{
    -webkit-animation:fadeInUpBig 1s .2s ease both;
    animation:fadeInUpBig 1s .2s ease both;
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}
.index_support.out{
    -webkit-animation:fadeOutDownBig 1s .2s ease both;
    animation:fadeOutDownBig 1s .2s ease both;
}
/*底部箭头按钮*/
.index_next{
    position:absolute;
    bottom:10px;
    width:100%;
    text-align: center;
    z-index: 999;
}
.index_next-icon{
    display: inline-block;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(225deg);
    cursor: pointer;
    position : relative;
    width : 1.2em;
    height : 1.2em;
    bottom : 1.8em;
}
.index_next-icon.in{
    animation : bounce 0.5s cubic-bezier(0.3,0.6,1,0.5) alternate infinite;
    -webkit-animation : bounce 0.5s cubic-bezier(0.3,0.6,1,0.5) alternate infinite;
    animation-delay: 1.5s;
    -webkit-animation-delay: 1.5s;
}
.index_next-icon.out{
    display: none;
    -webkit-animation:fadeOutDownBig 1s .2s ease both;
    animation:fadeOutDownBig 1s .2s ease both;
}

/*适配====================*/
/*分辨率小于360px样式*/
@media screen and (max-width: 359px){
    .index_bg-top{
        height:360px;
    }
    .index_main{
        margin-top:110px;
        padding-top:96px;
    }
    .index_title{
        height:26px;
    }
    .index_start{
        top:45px;
        height:36px;
    }
    .index_book{
        bottom: 0;
        height: 85px;
    }

    .index_num{
        font-size:15px;
    }
    .index_support{
        font-size:15px;
        bottom:140px;
    }
}
/*分辨率大于360小于410px样式*/
@media screen and (min-width: 360px) and (max-width: 410px){
    .index_main{
        margin-top:125px;
    }
    .index_title{
        height:30px;
    }
    .index_start{
        height:40px;
    }
    .index_book{
        bottom: 0px;
        height: 125px;
    }
    .index_support{
        font-size:15px;
        bottom:140px;
    }
}

/*动画====================*/
/*旋转-音乐*/
@-webkit-keyframes rotate-animation {
    0% {
        -webkit-transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@keyframes rotate-animation {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*弹跳-底部箭头*/
@keyframes bounce{
    60%{
        bottom : 0.5em;
    }
    to{
        bottom : 0;
    }
}
@-webkit-keyframes bounce{
    60%{
        top : 0.5em;
    }
    to{
        top : 1em;
    }
}
/*顶部淡入*/
@-webkit-keyframes fadeInDownBig{
    0%{
        opacity:0;
        -webkit-transform:translateY(-2000px)
    }
    100%{
        opacity:1;
        -webkit-transform:translateY(0)
    }
}
@keyframes fadeInDownBig{
    0%{
        opacity:0;
        transform:translateY(-2000px)
    }
    100%{
        opacity:1;
        transform:translateY(0)
    }
}
/*顶部淡出*/
@-webkit-keyframes fadeOutUpBig{
    0%{opacity:1;
        -webkit-transform:translateY(0)}
    100%{opacity:0;
        -webkit-transform:translateY(-2000px)}
}
@keyframes fadeOutUpBig{
    0%{opacity:1;
        transform:translateY(0)}
    100%{opacity:0;
        transform:translateY(-2000px)}
}
/*底部淡入*/
@-webkit-keyframes fadeInUpBig{
    0%{
        opacity:0;
        -webkit-transform:translateY(2000px)
    }
    100%{
        opacity:1;
        -webkit-transform:translateY(0)
    }
}
@keyframes fadeInUpBig{
    0%{
        opacity:0;
        transform:translateY(2000px)
    }
    100%{
        opacity:1;
        transform:translateY(0)
    }
}
/*底部淡出*/
@-webkit-keyframes fadeOutDownBig{
    0%{
        opacity:1;
        -webkit-transform:translateY(0)
    }
    100%{
        opacity:0;
        -webkit-transform:translateY(2000px)
    }
}
@keyframes fadeOutDownBig{
    0%{
        opacity:1;
        transform:translateY(0)
    }
    100%{
        opacity:0;
        transform:translateY(2000px)
    }
}
/*淡入*/
@-webkit-keyframes fadeIn{
    0%{opacity:0}
    100%{opacity:1}
}
@keyframes fadeIn{
    0%{opacity:0}
    100%{opacity:1}
}
/*淡出*/
@-webkit-keyframes fadeOut{
    0%{opacity:1}
    100%{opacity:0}
}
@keyframes fadeOut{
    0%{opacity:1}
    100%{opacity:0}
}
/*弹跳进入*/
@-webkit-keyframes bounceIn{
    0%{
        opacity:0;
        -webkit-transform:scale(.3)
    }
    50%{
        opacity:1;
        -webkit-transform:scale(1.5)
    }
    70%{
        -webkit-transform:scale(.9)
    }
    100%{
        -webkit-transform:scale(1)
    }
}
@keyframes bounceIn{
    0%{
        opacity:0;
        transform:scale(.3)
    }
    50%{
        opacity:1;
        transform:scale(1.2)
    }
    70%{
        transform:scale(.9)
    }
    100%{
        transform:scale(1)
    }
}
